﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SurveyEdit.aspx.cs" Inherits="ADMINSurvey_SurveyEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>问卷管理</title>
    <link href="CSS/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" title="Red" href="CSS/style_red.css" />
    <link href="CSS/System.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <!--这段必须用Jquert1.3.2的版本-->
    <script type="text/javascript" src="../js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="../js/json.js"></script>
    <script type="text/javascript" src="js/vo/dtoOption.js"></script>
    <script type="text/javascript" src="js/vo/dtoQuestion.js"></script>
    <script type="text/javascript" src="js/vo/dtoQuestionnaire.js"></script>
    <script type="text/javascript" src="js/FormatOption.js"></script>
    <script type="text/javascript" src="js/JSTool.js"></script>
    <script type="text/javascript" src="js/Edit.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <!--全局变量-->
        <input type="hidden" id="qnid" name="QuestionnairId"  value ="0"/>
        <div id="header">
            <div id="header_inner" class="fixed">
                <div id="logo">
                    <h1>
                        <span>问卷调查系统</span>2.0</h1>
                    <h2>
                        By PMG</h2>
                </div>
                <div id="menu">
                    <ul>
                        <li><a href="./SurveyEdit.aspx" id="bntAdd">添加问卷</a></li>
                        <li><a href="./SurveyList.aspx" id="bntEdit"class="active">问卷管理</a></li>
                        <li><a href="./StatList.aspx">查看统计分析</a></li>
                        <li><a href="./AccountList.aspx">查看答卷</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div id="main">
            <div id="main_inner" class="fixed">
                <div id="primaryContent_2columns">
                    <div id="columnA_2columns">
                        <h3 id="title">
                            添加问卷</h3>
                        <div id="UserForm">
                            <table height="20" cellspacing="4" cellpadding="4" width="100%" border="0">
                                <tr>
                                    <td width="114" align="right" class="Title">
                                        问卷名称：</td>
                                    <td colspan=2>
                                        <input id="txtQuestionnaire" class="text" style="width: 300px"></td>
                                </tr>
                                <tr>
                                    <td width="114" align="right" class="Title">
                                        添加问题：</td>
                                    <td>
                                        <ul class="icons" id="Open_link">
                                            <li class="ui-state-default ui-corner-all" title="添加问题"><span class="ui-icon ui-icon-circle-plus">
                                            </span></li>
                                        </ul>
                                    </td>
                                    <td valign="middle">
                                    < 点击左侧的图标添加问卷问题</td>
                                </tr>
                            </table>
                        </div>
                        <br><br>
                        <div id="QuestionForm">
                        </div>
                        <br><br><br>
                        <div id="SubmitForm">
                            <input type="button" class="SubmitBnt" value=" 保存问卷 " onclick="SubmitForm(0)"  />
                            <input type="button" class="SubmitBnt" value=" 发布问卷 " onclick="SubmitForm(1)"  />
                        </div>
                        <br class="clear" />
                    </div>
                </div>
                <div id="secondaryContent_2columns">
                    <div id="columnC_2columns">
                        <h4>
                            <span>用户搜索</span></h4>
                        <div id="search">
                            <input type="text" class="text" name="keywords" />
                            <input type="submit" class="button" value="Go" />
                            <br class="clear" />
                        </div>
                        <h4>
                            <span>搜索说明</span></h4>
                        <p>
                            <strong>Veroeros sed</strong> varius sollici, arcu. Vivamus et viverra. tor. Aenean
                            felis. Quisque eros. <a href="#">Lorem ipsum dolor</a>.</p>
                    </div>
                </div>
                <br class="clear" />
            </div>
        </div>
        <div id="footer" class="fixed">
            Copyright &copy; 2009 Your Website. All rights reserved.
        </div>
        <!--弹出窗口开始-->
        <div id="dialog" title="问题添加">
            <table style="padding: 0 10px 0 10px">
                <tr>
                    <td style="width: 90px; height: 40px">
                        问题名称:</td>
                    <td>
                        <input id="QuestionName" class="text" style="width: 300px"></td>
                </tr>
                <tr>
                    <td>
                        问题类型:</td>
                    <td>
                        <input type="radio" name="QuestionType" class="QuestionType" value="single" checked />单选
                        &nbsp;<input type="radio" name="QuestionType" class="QuestionType" value="single_other" />单选(带自填)
                        &nbsp;
                        <br>
                        <input type="radio" class="QuestionType" name="QuestionType" value="multicheck" />多选
                        &nbsp;<input type="radio" class="QuestionType" name="QuestionType" value="multicheck_other" />多选(带自填)
                        <br>
                        <input type="radio" class="QuestionType" name="QuestionType" value="singleblank" />问答
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table border="0" id="OptionArea" style="padding: 0 10px 0 10px">
                            <tbody id="OptionAdd">
                                <!--模板-->
                                <tr class="template">
                                    <td class="content">
                                    </td>
                                    <td class="del">
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <ul class="icons" id="additem">
                                            <li class="ui-state-default ui-corner-all" title="添加选项"><span class="ui-icon ui-icon-plusthick">
                                            </span></li>
                                        </ul>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </td>
                </tr>
            </table>
            <input type="hidden" id="QuestionType" value="single" />
            <input type="hidden" id="Qid" value="0" />
            <input type="hidden" id="OrderIDX" value="0" />
        </div>
        <!--弹出窗口结束-->
        <div id="Loading"  title="加载窗口"></div>
    </form>
</body>
</html>

